﻿@using giaoxuhaison.Models;
@using giaoxuhaison.Common;
@{
    ViewBag.Title = "Home Page";
}

@{
    var lstLabel = (List<LabelAll>)ViewData["lstLabel"];
    Common.strPath = "<a href='http://www.giaoxuhaison.net'>Trang chủ</a>";
}

<div class="main">
    <div class="LeftHeader">
        <div class="PannelView"> 
            <!--test tin tuc-->
            @Html.Action("NewNews", "News")
            <!--end-->                    
        </div>
        <div class="divspace">
        </div>
        <div class="MidPanel">
            @if (lstLabel.Count > 0)
            {
                <div class="HeadTitle">@lstLabel[0].Subject</div>
                <div class="HeadDesc"><i>@lstLabel[0].Author</i></div>
                <div class="HeadContent">@MvcHtmlString.Create(lstLabel[0].Contents)</div>
            }
            @*<img src='@Url.Content("~/Images/Banner/mid_banner.jpg")' />*@
        </div>
        @*
        <div class="MidPanelTet">            
        </div>
        *@
        <!--dua tung muc tin theo chu de-->        
        @Html.Action("NewsBox", "Home")
        <!--end-->
    </div>
    <div class="RightHeader">
        <div class="RightTitle">
            @Html.Label("THÔNG BÁO", new { @class = "lblLeftTitle" })                
        </div>
        <div class="Inform">
        <!--phan nay hien thi thong bao moi cua giao xu--> 
            @Html.Action("NewInform", "Inform")
        </div>        
        <div class="divspace"></div>
        <!--SUY NIEM LOI CHUA-->                    
        <div class="RightTitle">
            @Html.Label("SUY NIỆM LỜI CHÚA", new { @class = "lblLeftTitle" })                
        </div>
        <div class="GodTitle">
            <!--Hien thi phan loi Chua moi-->
            @Html.Action("NewGodTitle", "GodTitle")
        </div>
        <div class="divspace"></div>
        <!--tin bai moi-->
        <div class="RightGroupTitle">
            @Html.Label("TIN/ BÀI MỚI", new { @class = "lblLeftTitle" })                        
        </div>
        <div class="RightGroupContent">
            <!--Hien thi phan loi Chua moi-->        
            <!--Hien thi tin tuc moi cua group-->
            @Html.Action("IndexRightNews", "News")
        </div>
    </div>
        
    <!--hien thi hinh anh sinh hoat giao xu-->
    <div class="ImgPanelTitle" style="color:#990000;">        
        <a href='@Url.Action("ImgVideoGroup", "Categories", new { GroupID = 40})'>HÌNH ẢNH SINH HOẠT GIÁO XỨ</a>@*<a href='@Url.Action("CategoryDetail", "Categories", new { CategoryID = item.CategoryID, GroupID = item.GroupID })'>@item.Subject</a>        *@
    </div>
    <div class="ImgPanelView">
        @Html.Action("PanelImages", "Categories")
    </div>
</div>
<script type="text/javascript">
    $(function () {
        $("#tabs").tabs({
            show: function () {
                $(window).scroll();
            },
            beforeLoad: function (event, ui) {
                ui.jqXHR.error(function () {
                    ui.panel.html(
                        "Couldn't load this tab. We'll try to fix this as soon as possible. " +
                        "If this wouldn't be a demo.");
                });
            }
        });        
    });    
</script>

